<script src="./certidsresults.component.js"></script>
<style src="./certidsresults.css" scoped></style>
<template>
	<view>
		<view class="cu-form-group margin-top-xs">
			<view class="title">证件类型</view>
			<view>居民身份证</view>
		</view>
		<view class="cu-form-group">
			<view class="title">真实姓名</view>
			<view>{{userAuthInfo.identityName}}</view>
		</view>
		<view class="cu-form-group">
			<view class="title">证件号</view>
			<view>{{userAuthInfo.identityCard}}</view>
		</view>
		<view class="cu-form-group">
			<view class="title">身份证照片</view>
			<view v-if="userAuthInfo.faceFile!=null">已上传</view>
			<view v-else>未上传</view>
		</view>
		<view class="cu-form-group">
			<view class="title">性别</view>
			<view>
				<text v-if="userAuthInfo.gender==1">男</text>
				<text v-else-if="userAuthInfo.gender==2">女</text>
			</view>
		</view>
		<view class="cu-form-group">
			<view class="title">地址</view>
			<view>{{userAuthInfo.address||''}}</view>
		</view>
		<!-- <view class="margin-top-xxl margin-bottom-xxxxl">
			<navigator class="cu-btn block bg-gradual-red margin-lr-xl lg round" url="../certids/certids">重新实名</navigator>
		</view> -->
		<view class="cu-tabbar-height"></view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				userAuthInfo:{}
			};
		},
		onLoad() {
			this.fn_userAuthInfo();
		},
		methods:{
			fn_userAuthInfo(){
				uni.request({
					url: this.$serverUrl+'/isalary/my/userAuthInfo',
					method:'GET',
					header: {
						'content-type': 'application/x-www-form-urlencoded', 
						Authorization:uni.getStorageSync('token')
					},
					success: (res) => {
						if (res.data.code == 0) {
							this.userAuthInfo = res.data.data;
						} else {
							uni.showToast({
								icon: 'none',
								title: res.data.msg
							});
						}
				
					},
					fail:function(e){
						
					}
				})
			}
	
		}
		
	}
</script>